let app = getApp()
Component({
    properties: {
        pagetitle:String
      }, 
      data:{
        page:1
      },
    lifetimes: {
        attached: function () {
          this.getdata();
       }
      },
    methods: {
      getdata:function(){
        var that=this
        wx.request({
            url: app.globalData.siteroot,
            data: {
              do:'Member_userCollectionList',
              user_id:wx.getStorageSync('user_id'),
              page:that.data.page,
              page_size:20
            },
            success: function(res) {
                that.setData({
                  list:res.data.data
                })
            }
          })
      },
      deleteClick:function(e){
           this.getdata();
      }
    }
});
